package com.skillworld.webapp.model.courseservice;

@SuppressWarnings("serial")
public class NoVacanciesLeftException extends Exception 
{
    private long courseId;

    public NoVacanciesLeftException(long courseId)
    {
        super("No vacancies left for course `" + courseId + "'");
        this.courseId = courseId;
    }

    public long getCourseId() 
    {
        return courseId;
    }
}
